package com.ruoyi.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.PjOrderDetailsMapper;
import com.ruoyi.web.domain.PjOrderDetails;
import com.ruoyi.web.service.IPjOrderDetailsService;

/**
 * 订单详情管理Service业务层处理
 * 
 * @author mike
 * @date 2024-12-21
 */
@Service
public class PjOrderDetailsServiceImpl implements IPjOrderDetailsService 
{
    @Autowired
    private PjOrderDetailsMapper pjOrderDetailsMapper;

    /**
     * 查询订单详情管理
     * 
     * @param orderDetailId 订单详情管理主键
     * @return 订单详情管理
     */
    @Override
    public PjOrderDetails selectPjOrderDetailsByOrderDetailId(Long orderDetailId)
    {
        return pjOrderDetailsMapper.selectPjOrderDetailsByOrderDetailId(orderDetailId);
    }

    /**
     * 查询订单详情管理列表
     * 
     * @param pjOrderDetails 订单详情管理
     * @return 订单详情管理
     */
    @Override
    public List<PjOrderDetails> selectPjOrderDetailsList(PjOrderDetails pjOrderDetails)
    {
        return pjOrderDetailsMapper.selectPjOrderDetailsList(pjOrderDetails);
    }

    /**
     * 新增订单详情管理
     * 
     * @param pjOrderDetails 订单详情管理
     * @return 结果
     */
    @Override
    public int insertPjOrderDetails(PjOrderDetails pjOrderDetails)
    {
        return pjOrderDetailsMapper.insertPjOrderDetails(pjOrderDetails);
    }

    /**
     * 修改订单详情管理
     * 
     * @param pjOrderDetails 订单详情管理
     * @return 结果
     */
    @Override
    public int updatePjOrderDetails(PjOrderDetails pjOrderDetails)
    {
        return pjOrderDetailsMapper.updatePjOrderDetails(pjOrderDetails);
    }

    /**
     * 批量删除订单详情管理
     * 
     * @param orderDetailIds 需要删除的订单详情管理主键
     * @return 结果
     */
    @Override
    public int deletePjOrderDetailsByOrderDetailIds(Long[] orderDetailIds)
    {
        return pjOrderDetailsMapper.deletePjOrderDetailsByOrderDetailIds(orderDetailIds);
    }

    /**
     * 删除订单详情管理信息
     * 
     * @param orderDetailId 订单详情管理主键
     * @return 结果
     */
    @Override
    public int deletePjOrderDetailsByOrderDetailId(Long orderDetailId)
    {
        return pjOrderDetailsMapper.deletePjOrderDetailsByOrderDetailId(orderDetailId);
    }
}
